package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

import com.njtoyo.taxi.admin.mapper.master.enums.MemberPointLogEvent;
import com.njtoyo.taxi.admin.mapper.master.enums.MemberPointLogInOut;
import com.njtoyo.taxi.admin.mapper.master.enums.MemberPointLogRefType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Dell
 * @since 2021-09-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MemberPointLog对象", description="")
@Accessors(chain = true)
public class MemberPointLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "会员ID")
    private Long memberId;

    @ApiModelProperty(value = "事件")
    private MemberPointLogEvent pointLogEvent;

    @ApiModelProperty(value = "积分")
    private Long point;

    @ApiModelProperty(value = "是否有效")
    private Boolean isValid;

    @ApiModelProperty(value = "支出/收入 增加存1，减少存0")
    private MemberPointLogInOut inOut;

    @ApiModelProperty(value = "外键编号")
    private Long refId;

    @ApiModelProperty(value = "外键类型")
    private MemberPointLogRefType refType;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

    @ApiModelProperty(value = "过期时间")
    private Date expireTime;
}
